//package pf.springBoot.springBootSSO.configuration;
//
//import org.springframework.context.annotation.Configuration;
//
////import nz.net.ultraq.thymeleaf.LayoutDialect;
////
////import org.springframework.context.annotation.Bean;
////import org.springframework.context.annotation.Configuration;
//////import org.thymeleaf.spring4.SpringTemplateEngine;
//////import org.thymeleaf.spring4.view.ThymeleafViewResolver;
////import org.thymeleaf.templateresolver.ClassLoaderTemplateResolver;
//////import com.ailk.retail.web.thymeleaf.expression.SmallFunctionHelper;
////import javax.servlet.ServletContext;
////import javax.servlet.ServletException;
////
////import org.springframework.beans.factory.annotation.Autowired;
////import org.springframework.context.ApplicationContext;
////import org.springframework.context.annotation.Bean;
////import org.springframework.web.servlet.ViewResolver;
////import org.thymeleaf.spring5.SpringTemplateEngine;
////import org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver;
////import org.thymeleaf.spring5.view.ThymeleafViewResolver;
////import org.thymeleaf.templateresolver.ClassLoaderTemplateResolver;
////import org.thymeleaf.templateresolver.ITemplateResolver;
////import org.thymeleaf.templateresolver.ServletContextTemplateResolver;
//@Configuration 
//public class ViewConfiguration
//{ 
//
////    @Bean
////    public ClassLoaderTemplateResolver templateResolver() {
////        ClassLoaderTemplateResolver templateResolver = new ClassLoaderTemplateResolver();
//////        templateResolver.setTemplateMode("HTML5");
//////        templateResolver.setPrefix("pages/");
//////        templateResolver.setSuffix(".html");
//////        templateResolver.setCharacterEncoding("utf-8");
//////        templateResolver.setOrder(1);
////// 
//////        templateResolver.setCacheable(false);
////        return templateResolver;
////    }
// 
////    @Bean
////    public SpringTemplateEngine templateEngine() {
////        SpringTemplateEngine engine = new SpringTemplateEngine();
////        engine.setTemplateResolver(templateResolver());
//////        engine.addDialect(new DataTablesDialect());
////        engine.addDialect(new LayoutDialect());
////        return engine;
////    }
// 
////    @Bean
////    public ThymeleafViewResolver thymeleafViewResolver() {
////        ThymeleafViewResolver viewResolver = new ThymeleafViewResolver();
////        viewResolver.setTemplateEngine(templateEngine());
////        viewResolver.setCharacterEncoding("utf-8");
//////        SmallFunctionHelper.addSmallFunctionTag(viewResolver);
////        return viewResolver;
////    }
//}
